package com.qaml.mes.device.repository;

import com.qaml.mes.device.dao.CheckUpkeepItemDO;

import java.util.List;

/**
 * @ClassName CheckUpkeepItemRepository
 * @Description TODO
 * @Author leikai
 * @Date 2024/2/27 0027 9:49
 * @Version 1.0
 */
public interface CheckUpkeepItemRepository {

    /**
     * 根据checkUpkeepId删除
     *
     * @param checkUpkeepId
     */
    void deleteByCheckUpkeepId(String checkUpkeepId);

    void saveBatch(List<CheckUpkeepItemDO> checkUpkeepItemDOS);

    /**
     * 根据checkUpkeepId查询
     *
     * @param checkUpkeepId
     * @return
     */
    List<CheckUpkeepItemDO> getByCheckUpkeepId(String checkUpkeepId);


    /**
     * 批量修改检保条目
     *
     * @param ids
     */
    void updateCheckUpItemByIds(List<String> ids);

    void updateByCheckUpKeepId(CheckUpkeepItemDO checkUpkeepItemDO);

}